package com.bw.zhuangao5___day002.UI.Login;

import com.bw.mvp.M.BannerModel;

import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;


/**
 * create by ertu
 * create on 2021/9/13
 * description
 */
public class LoginModel extends BannerModel implements LoginContion.loginmodel {


    @Override
    public void getloginmodel(String zhangs,  Observer<LoginClass> loginClassObserver) {
        LoginOkhttp.getLoginOkhttp().getRetrofits("http://39.98.153.96:8088/").create(LoginApl.class).getlogin(zhangs)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.computation())
                .subscribe(loginClassObserver);
    }
}
